<%@ page language="java" isELIgnored="false" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>新插入数据页</title>
    <script type="text/javascript" src="/js/jquery.min.js"></script>
</head>
<body>
<input type="text" id="name" hidden="用户名">
<input type="text" id="money" hidden="余额">
<input type="text" id="cardNo" hidden="卡号">
<input type="button" id="insertBtn" value="提交"/>
</body>
<script>
    $(function () {
        $("#insertBtn").bind("click",function () {
            var name =  $('#name')
            console.log(name)
            // 发送ajax请求
            // $.ajax({
            //     url: '/account/insert',
            //     type: 'POST',
            //     data: '{"id":"1","name":"李四"}',
            //     contentType: 'application/json;charset=utf-8',
            //     dataType: 'json',
            //     success: function (data) {
            //         alert(data.name);
            //     }
            // })
        })
    })
</script>
</html>
